Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only construct preload if it is needed #135

Merged
merged 1 commit into from
Apr 8, 2021

Conversation

schlessera
Copy link
Collaborator

I intended to fix #127 now but found out I had already fixed this as part of a different PR.

However, I noticed that the preload was first being constructed unconditionally before deciding whether to attach it to the document or not. This PR now only does the preload construction if it is actually attached to the document.

Fixes #127

@schlessera schlessera added Bug Something isn't working Performance labels Apr 8, 2021
@schlessera schlessera requested a review from westonruter April 8, 2021 16:00
@schlessera schlessera added this to the 0.4.0 milestone Apr 8, 2021
@schlessera schlessera merged commit c9d317a into main Apr 8, 2021
@schlessera schlessera deleted the fix/127-dont-preload-hero-images branch April 8, 2021 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't preload hero images
1 participant